package com.ysxsoft.wdg.adapter.th;


import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;
import com.ysxsoft.wdg.util.ViewUtils;

public class ThTgAdapter extends BaseQuickAdapter<String,BaseViewHolder> {


    public ThTgAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear(){
        getData().clear();
        notifyDataSetChanged();
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {

//        Glide.with(mContext).load(item.getImage()).into((ImageView) helper.getView(R.id.iv_pic));
//        ImageView ivPt = helper.getView(R.id.iv_pt);
//
//        helper.setText(R.id.tv_num,item.+"人已参团");
        helper.setText(R.id.tv_money,mContext.getString(R.string.price_rmb,"100"));
        helper.setText(R.id.tv_old_money,mContext.getString(R.string.price_rmb,"120"));
        ViewUtils.setDeletLine((TextView) helper.getView(R.id.tv_old_money));

//        helper.setText(R.id.tv_name,item.getName());
//        helper.setText(R.id.tv_content,item.getName());
//        helper.setText(R.id.tv_btn,"开团");
    }
}
